package org.gjw.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.gjw.bean.SysPermission;
import org.gjw.bean.SysRole;
import org.gjw.bean.SysUser;

import java.util.List;

/**
 * SysUserMapper继承基类
 */
public interface SysUserMapper extends BaseMapper<SysUser> {

    public SysUser getUserByUsername(String username);

    public List<SysRole> getUserRoles(Integer userId);

    public List<SysPermission> getUserPermission(Integer userId);
}